<template>
	<view class="hs-panel">
		<view class="hs-panel-head"><view class="title">婚车信息</view></view>
		<view class="hs-panel-body" v-for="(item,index) in car" :key="index" style="margin-bottom: 20px;">
			<view class="hs-list-item">
				<view class="hs-list-item-left">承办公司</view>
				<view class="hs-list-item-right">{{ dictionary.getPickerTitle('companyList', item.company_id) }}</view>
			</view>
			<view class="hs-list-item">
				<view class="hs-list-item-left">婚车类型</view>
				<view class="hs-list-item-right">{{ item.is_master == '1' ? '主车' : '跟车'}}</view>
			</view>
			<view class="hs-list-item">
				<view class="hs-list-item-left">婚车型号</view>
				<view class="hs-list-item-right">{{dictionary.getPickerTitle('car', item.car_id)}}</view>
			</view>
			<view class="hs-list-item" v-if="car.master_car_amount">
				<view class="hs-list-item-left">婚车数量</view>
				<view class="hs-list-item-right">{{ item.car_amount }}</view>
			</view>
			<view class="hs-list-item">
				<view class="hs-list-item-left">婚车费用</view>
				<view class="hs-list-item-right">{{ item.car_price }}</view>
			</view>
			<view class="hs-list-item">
				<view class="hs-list-item-left">婚车服务时长</view>
				<view class="hs-list-item-right">{{ item.service_hour }}</view>
			</view>
			<view class="hs-list-item">
				<view class="hs-list-item-left">婚车服务距离</view>
				<view class="hs-list-item-right">{{ item.service_distance }}</view>
			</view>
			<view class="hs-list-item" v-if="item.car_remark" >
				<view class="hs-list-item-left">备注</view>
				<view class="hs-list-item-right">{{ item.car_remark }}</view>
			</view>
		</view>
	</view>
</template>

<script>
import dictionary from '@/utils/dictionary.js';

export default {
	props: {
		car: Array
	},
	beforeCreate() {
		this.dictionary = dictionary;
	}
};
</script>

<style lang="less">
@import url('../common.less');
</style>
